From f735c10b84cb6dfa21d41b084ec77cad30b50492 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Fri, 24 Sep 2021 15:18:31 -0700 Subject: [PATCH] [Engine] Clear up compiler warnings --- libopenfpga/libopenfpgautil/src/openfpga_port.cpp | 5 ----- libopenfpga/libopenfpgautil/src/openfpga_port.h | 1 - 2 files changed, 6 deletions(-) diff --git a/libopenfpga/libopenfpgautil/src/openfpga_port.cpp b/libopenfpga/libopenfpgautil/src/openfpga_port.cpp index a68431739..570fdf603 100644 --- a/libopenfpga/libopenfpgautil/src/openfpga_port.cpp +++ b/libopenfpga/libopenfpgautil/src/openfpga_port.cpp @@ -51,11 +51,6 @@ BasicPort::BasicPort(const std::string& name, const size_t& width) { set_origin_port_width(-1); } -/* Copy constructor */ -BasicPort::BasicPort(const BasicPort& basic_port) { - set(basic_port); -} - /************************************************************************ * Accessors ***********************************************************************/ diff --git a/libopenfpga/libopenfpgautil/src/openfpga_port.h b/libopenfpga/libopenfpgautil/src/openfpga_port.h index 4779e2332..3df6d0efa 100644 --- a/libopenfpga/libopenfpgautil/src/openfpga_port.h +++ b/libopenfpga/libopenfpgautil/src/openfpga_port.h @@ -18,7 +18,6 @@ class BasicPort { BasicPort(const char* name, const size_t& width); BasicPort(const std::string& name, const size_t& lsb, const size_t& msb); BasicPort(const std::string& name, const size_t& width); - BasicPort(const BasicPort& basic_port); /* Copy constructor */ public: /* Overloaded operators */ bool operator== (const BasicPort& portA) const; bool operator< (const BasicPort& portA) const;