From 620bae6b0ede672e48054eda4b00b573b93f45c3 Mon Sep 17 00:00:00 2001 From: Dieter Baron Date: Sat, 27 Apr 2024 14:45:30 +0200 Subject: [PATCH] Remove unused method. --- src/FilenameVariable.h | 1 - src/TextVariable.h | 1 - src/Variable.h | 1 - 3 files changed, 3 deletions(-) diff --git a/src/FilenameVariable.h b/src/FilenameVariable.h index 24af75e..fdf0b47 100644 --- a/src/FilenameVariable.h +++ b/src/FilenameVariable.h @@ -45,7 +45,6 @@ class FilenameVariable : public Variable { void resolve_sub(const ResolveContext& context) override {value.resolve(context);} void print_definition(std::ostream& stream) const override; - void print_use(std::ostream& stream) const override {} // TODO [[nodiscard]] std::string string() const override {return value.string();} void collect_filenames(std::vector& collector) const {return value.collect_filenames(collector);} diff --git a/src/TextVariable.h b/src/TextVariable.h index c9bf755..9b05981 100644 --- a/src/TextVariable.h +++ b/src/TextVariable.h @@ -42,7 +42,6 @@ class TextVariable: public Variable { void resolve_sub(const ResolveContext& scope) override; void print_definition(std::ostream& stream) const override; - void print_use(std::ostream& stream) const override {} // TODO [[nodiscard]] std::string string() const override {return value.string();} private: diff --git a/src/Variable.h b/src/Variable.h index c904e27..ec14a60 100644 --- a/src/Variable.h +++ b/src/Variable.h @@ -54,7 +54,6 @@ class Variable { void resolve(const ResolveContext& context); virtual void resolve_sub(const ResolveContext& context) = 0; virtual void print_definition(std::ostream& stream) const = 0; - virtual void print_use(std::ostream& stream) const = 0; [[nodiscard]] virtual std::string string() const = 0; std::string name;