Skip to content

Commit

Permalink
remove get_argument_consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
urisinger committed Dec 26, 2024
1 parent 1a37778 commit 5676ca2
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 60 deletions.
4 changes: 0 additions & 4 deletions pumpkin/src/command/args/arg_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ impl DefaultNameArgConsumer for BlockArgumentConsumer {
fn default_name(&self) -> String {
"block".to_string()
}

fn get_argument_consumer(&self) -> &dyn ArgumentConsumer {
self
}
}

impl<'a> FindArg<'a> for BlockArgumentConsumer {
Expand Down
4 changes: 0 additions & 4 deletions pumpkin/src/command/args/arg_bossbar_color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ impl DefaultNameArgConsumer for BossbarColorArgumentConsumer {
fn default_name(&self) -> String {
"color".to_string()
}

fn get_argument_consumer(&self) -> &dyn ArgumentConsumer {
self
}
}

impl<'a> FindArg<'a> for BossbarColorArgumentConsumer {
Expand Down
4 changes: 0 additions & 4 deletions pumpkin/src/command/args/arg_bossbar_style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ impl DefaultNameArgConsumer for BossbarStyleArgumentConsumer {
fn default_name(&self) -> String {
"style".to_string()
}

fn get_argument_consumer(&self) -> &dyn ArgumentConsumer {
self
}
}

impl<'a> FindArg<'a> for BossbarStyleArgumentConsumer {
Expand Down
4 changes: 0 additions & 4 deletions pumpkin/src/command/args/arg_bounded_num.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,4 @@ where
// setting a single default name for all BoundedNumArgumentConsumer variants is probably a bad idea since it would lead to confusion
self.name.expect("Only use *_default variants of methods with a BoundedNumArgumentConsumer that has a name.").to_string()
}

fn get_argument_consumer(&self) -> &dyn ArgumentConsumer {
self
}
}
4 changes: 0 additions & 4 deletions pumpkin/src/command/args/arg_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ impl DefaultNameArgConsumer for CommandTreeArgumentConsumer {
fn default_name(&self) -> String {
"cmd".to_string()
}

fn get_argument_consumer(&self) -> &dyn ArgumentConsumer {
&Self
}
}

impl<'a> FindArg<'a> for CommandTreeArgumentConsumer {
Expand Down
4 changes: 0 additions & 4 deletions pumpkin/src/command/args/arg_entities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ impl DefaultNameArgConsumer for EntitiesArgumentConsumer {
fn default_name(&self) -> String {
"targets".to_string()
}

fn get_argument_consumer(&self) -> &dyn ArgumentConsumer {
&Self
}
}

impl<'a> FindArg<'a> for EntitiesArgumentConsumer {
Expand Down
4 changes: 0 additions & 4 deletions pumpkin/src/command/args/arg_entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@ impl DefaultNameArgConsumer for EntityArgumentConsumer {
fn default_name(&self) -> String {
"target".to_string()
}

fn get_argument_consumer(&self) -> &dyn ArgumentConsumer {
&Self
}
}

impl<'a> FindArg<'a> for EntityArgumentConsumer {
Expand Down
4 changes: 0 additions & 4 deletions pumpkin/src/command/args/arg_gamemode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ impl DefaultNameArgConsumer for GamemodeArgumentConsumer {
fn default_name(&self) -> String {
"gamemode".to_string()
}

fn get_argument_consumer(&self) -> &dyn ArgumentConsumer {
&Self
}
}

impl<'a> FindArg<'a> for GamemodeArgumentConsumer {
Expand Down
4 changes: 0 additions & 4 deletions pumpkin/src/command/args/arg_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ impl DefaultNameArgConsumer for ItemArgumentConsumer {
fn default_name(&self) -> String {
"item".to_string()
}

fn get_argument_consumer(&self) -> &dyn ArgumentConsumer {
self
}
}

impl<'a> FindArg<'a> for ItemArgumentConsumer {
Expand Down
4 changes: 0 additions & 4 deletions pumpkin/src/command/args/arg_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ impl DefaultNameArgConsumer for MsgArgConsumer {
fn default_name(&self) -> String {
"msg".to_string()
}

fn get_argument_consumer(&self) -> &dyn ArgumentConsumer {
&Self
}
}

impl<'a> FindArg<'a> for MsgArgConsumer {
Expand Down
4 changes: 0 additions & 4 deletions pumpkin/src/command/args/arg_players.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ impl DefaultNameArgConsumer for PlayersArgumentConsumer {
fn default_name(&self) -> String {
"player".to_string()
}

fn get_argument_consumer(&self) -> &dyn ArgumentConsumer {
&Self
}
}

impl<'a> FindArg<'a> for PlayersArgumentConsumer {
Expand Down
4 changes: 0 additions & 4 deletions pumpkin/src/command/args/arg_position_2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ impl DefaultNameArgConsumer for Position2DArgumentConsumer {
fn default_name(&self) -> String {
"pos2d".to_string()
}

fn get_argument_consumer(&self) -> &dyn ArgumentConsumer {
&Self
}
}

impl<'a> FindArg<'a> for Position2DArgumentConsumer {
Expand Down
4 changes: 0 additions & 4 deletions pumpkin/src/command/args/arg_position_3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ impl DefaultNameArgConsumer for Position3DArgumentConsumer {
fn default_name(&self) -> String {
"pos".to_string()
}

fn get_argument_consumer(&self) -> &dyn ArgumentConsumer {
&Self
}
}

impl<'a> FindArg<'a> for Position3DArgumentConsumer {
Expand Down
4 changes: 0 additions & 4 deletions pumpkin/src/command/args/arg_position_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ impl DefaultNameArgConsumer for BlockPosArgumentConsumer {
fn default_name(&self) -> String {
"block_pos".to_string()
}

fn get_argument_consumer(&self) -> &dyn ArgumentConsumer {
&Self
}
}

impl<'a> FindArg<'a> for BlockPosArgumentConsumer {
Expand Down
4 changes: 0 additions & 4 deletions pumpkin/src/command/args/arg_resource_location.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ impl DefaultNameArgConsumer for ResourceLocationArgumentConsumer {
fn default_name(&self) -> String {
"id".to_string()
}

fn get_argument_consumer(&self) -> &dyn ArgumentConsumer {
self
}
}

impl<'a> FindArg<'a> for ResourceLocationArgumentConsumer {
Expand Down

0 comments on commit 5676ca2

Please sign in to comment.