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

Remove the deprecated methods #8

Open
Fryguy opened this issue May 22, 2015 · 1 comment
Open

Remove the deprecated methods #8

Fryguy opened this issue May 22, 2015 · 1 comment

Comments

@Fryguy
Copy link
Member

Fryguy commented May 22, 2015

#
# Methods to handle the old style of calling
#
@@structs_by_definition = {}
def self.clear_structs_by_definition_cache
@@structs_by_definition.clear
end
def self.sizeof(definition)
struct_by_definition(definition).size
end
def self.decode(data, definition)
struct_by_definition(definition).decode(data)
end
def self.encode(hash, definition)
struct_by_definition(definition).encode(hash)
end
private
def self.struct_by_definition(definition)
@@structs_by_definition[definition] ||= definition.kind_of?(self) ? definition : self.new(definition)
end

@miq-bot
Copy link
Member

miq-bot commented Jun 12, 2020

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the traige process documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants