mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:42:43 +00:00 
			
		
		
		
	LibJS: Remove unused MemberExpression::computed_property_name()
This commit is contained in:
		
							parent
							
								
									23e09eb7f4
								
							
						
					
					
						commit
						8d70a50aed
					
				
					 2 changed files with 0 additions and 14 deletions
				
			
		|  | @ -2727,18 +2727,6 @@ void MemberExpression::dump(int indent) const | |||
|     m_property->dump(indent + 1); | ||||
| } | ||||
| 
 | ||||
| PropertyKey MemberExpression::computed_property_name(Interpreter& interpreter, GlobalObject& global_object) const | ||||
| { | ||||
|     if (!is_computed()) | ||||
|         return verify_cast<Identifier>(*m_property).string(); | ||||
| 
 | ||||
|     auto value = m_property->execute(interpreter, global_object); | ||||
|     if (interpreter.exception()) | ||||
|         return {}; | ||||
|     VERIFY(!value.is_empty()); | ||||
|     return PropertyKey::from_value(global_object, value); | ||||
| } | ||||
| 
 | ||||
| String MemberExpression::to_string_approximation() const | ||||
| { | ||||
|     String object_string = "<object>"; | ||||
|  |  | |||
|  | @ -1617,8 +1617,6 @@ public: | |||
|     Expression const& object() const { return *m_object; } | ||||
|     Expression const& property() const { return *m_property; } | ||||
| 
 | ||||
|     PropertyKey computed_property_name(Interpreter&, GlobalObject&) const; | ||||
| 
 | ||||
|     String to_string_approximation() const; | ||||
| 
 | ||||
|     bool ends_in_private_name() const; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Groh
						Linus Groh