Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tlatools
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
tlatools
Commits
baa781f0
Commit
baa781f0
authored
Feb 3, 2018
by
William Schultz
Committed by
Markus Alexander Kuppe
Feb 7, 2018
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused diff method
parent
3cd7a366
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tlatools/src/tlc2/tool/TLCState.java
+0
-20
0 additions, 20 deletions
tlatools/src/tlc2/tool/TLCState.java
with
0 additions
and
20 deletions
tlatools/src/tlc2/tool/TLCState.java
+
0
−
20
View file @
baa781f0
...
...
@@ -76,26 +76,6 @@ public abstract class TLCState implements Cloneable, Serializable {
return
valMap
;
}
/**
* Returns a map of all variables that are different between this state and 'otherState' along
* with their values in 'otherState'.
*/
public
HashMap
<
UniqueString
,
Value
>
diff
(
TLCState
otherState
){
HashMap
<
UniqueString
,
Value
>
stateVals
=
this
.
getVals
();
HashMap
<
UniqueString
,
Value
>
succStateVals
=
otherState
.
getVals
();
HashMap
<
UniqueString
,
Value
>
diffMap
=
new
HashMap
<>();
for
(
UniqueString
key
:
stateVals
.
keySet
())
{
Value
valSucc
=
succStateVals
.
get
(
key
);
// Check if the value in the new state is different from the old state.
if
(!
stateVals
.
get
(
key
).
equals
(
valSucc
))
{
diffMap
.
put
(
key
,
valSucc
);
}
}
return
diffMap
;
}
/* Returns a string representation of this state. */
public
abstract
String
toString
();
public
abstract
String
toString
(
TLCState
lastState
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment