Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entity.rb defines parse_serialization_data, remove the incorrect version #71

Open
davebytemfg opened this issue Apr 23, 2021 · 0 comments

Comments

@davebytemfg
Copy link

bytemfg — Today at 5:15 PM
Now you got me looking at things, the entity.rb seems to def self.parse_serialization_data twice? Does that even work? (lines 23 and 34)
amirrajan — Today at 5:16 PM
The method on line 23 should be removed
bytemfg — Today at 5:18 PM
k, i'll write up an Issue.

diff --git a/dragon/entity.rb b/dragon/entity.rb
index 09fa794..1d252fa 100644
--- a/dragon/entity.rb
+++ b/dragon/entity.rb
@@ -20,17 +20,6 @@ module GTK
       @strict_entities
     end
 
-    def self.parse_serialization_data data
-      r = Entity.parse_serialization_data data
-      return r if r.is_a? OpenEntity
-      return r if r.is_a? StrictEntity
-      raise <<-S
-* ERROR:
-The save data looks to be corrupt.
-
-S
-    end
-
@davebytemfg davebytemfg changed the title Remove dead function entity.rb defines parse_serialization_data, remove the incorrect version Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant