Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
6e932c31
Commit
6e932c31
authored
Jan 08, 2018
by
Todd Ross
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
obsolete UndoRedo max_steps; no users identified
parent
efe27c6e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
38 deletions
+0
-38
undo_redo.cpp
core/undo_redo.cpp
+0
-20
undo_redo.h
core/undo_redo.h
+0
-4
UndoRedo.xml
doc/classes/UndoRedo.xml
+0
-14
No files found.
core/undo_redo.cpp
View file @
6e932c31
...
...
@@ -246,13 +246,6 @@ void UndoRedo::commit_action() {
redo
();
// perform action
if
(
max_steps
>
0
&&
actions
.
size
()
>
max_steps
)
{
//clear early steps
while
(
actions
.
size
()
>
max_steps
)
_pop_history_tail
();
}
if
(
callback
&&
actions
.
size
()
>
0
)
{
callback
(
callback_ud
,
actions
[
actions
.
size
()
-
1
].
name
);
}
...
...
@@ -347,16 +340,6 @@ String UndoRedo::get_current_action_name() const {
return
actions
[
current_action
].
name
;
}
void
UndoRedo
::
set_max_steps
(
int
p_max_steps
)
{
max_steps
=
p_max_steps
;
}
int
UndoRedo
::
get_max_steps
()
const
{
return
max_steps
;
}
uint64_t
UndoRedo
::
get_version
()
const
{
return
version
;
...
...
@@ -385,7 +368,6 @@ UndoRedo::UndoRedo() {
version
=
1
;
action_level
=
0
;
current_action
=
-
1
;
max_steps
=
-
1
;
merge_mode
=
MERGE_DISABLE
;
callback
=
NULL
;
callback_ud
=
NULL
;
...
...
@@ -510,8 +492,6 @@ void UndoRedo::_bind_methods() {
ClassDB
::
bind_method
(
D_METHOD
(
"clear_history"
),
&
UndoRedo
::
clear_history
);
ClassDB
::
bind_method
(
D_METHOD
(
"get_current_action_name"
),
&
UndoRedo
::
get_current_action_name
);
ClassDB
::
bind_method
(
D_METHOD
(
"get_version"
),
&
UndoRedo
::
get_version
);
ClassDB
::
bind_method
(
D_METHOD
(
"set_max_steps"
,
"max_steps"
),
&
UndoRedo
::
set_max_steps
);
ClassDB
::
bind_method
(
D_METHOD
(
"get_max_steps"
),
&
UndoRedo
::
get_max_steps
);
ClassDB
::
bind_method
(
D_METHOD
(
"redo"
),
&
UndoRedo
::
redo
);
ClassDB
::
bind_method
(
D_METHOD
(
"undo"
),
&
UndoRedo
::
undo
);
...
...
core/undo_redo.h
View file @
6e932c31
...
...
@@ -79,7 +79,6 @@ private:
Vector
<
Action
>
actions
;
int
current_action
;
int
action_level
;
int
max_steps
;
MergeMode
merge_mode
;
uint64_t
version
;
...
...
@@ -115,9 +114,6 @@ public:
String
get_current_action_name
()
const
;
void
clear_history
();
void
set_max_steps
(
int
p_max_steps
);
int
get_max_steps
()
const
;
uint64_t
get_version
()
const
;
void
set_commit_notify_callback
(
CommitNotifyCallback
p_callback
,
void
*
p_ud
);
...
...
doc/classes/UndoRedo.xml
View file @
6e932c31
...
...
@@ -108,12 +108,6 @@
Get the name of the current action.
</description>
</method>
<method
name=
"get_max_steps"
qualifiers=
"const"
>
<return
type=
"int"
>
</return>
<description>
</description>
</method>
<method
name=
"get_version"
qualifiers=
"const"
>
<return
type=
"int"
>
</return>
...
...
@@ -128,14 +122,6 @@
<description>
</description>
</method>
<method
name=
"set_max_steps"
>
<return
type=
"void"
>
</return>
<argument
index=
"0"
name=
"max_steps"
type=
"int"
>
</argument>
<description>
</description>
</method>
<method
name=
"undo"
>
<return
type=
"void"
>
</return>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment