summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Reimer <manuel.reimer@gmx.de>2018-11-09 15:51:59 (GMT)
committerManuel Reimer <manuel.reimer@gmx.de>2018-11-09 15:51:59 (GMT)
commit35d890d370e17a583835f501f2c418b16e7dfc13 (patch)
tree437ae10e718540f27d9653bcf23244dbcdc22033
parent55d4bd88164f02e33d2c3d75a036437c50afe40e (diff)
downloadgraphlcd-base-35d890d370e17a583835f501f2c418b16e7dfc13.tar.gz
graphlcd-base-35d890d370e17a583835f501f2c418b16e7dfc13.tar.bz2
Remove unused "sort" function from glcddrivers
-rw-r--r--glcddrivers/common.c11
-rw-r--r--glcddrivers/common.h1
2 files changed, 0 insertions, 12 deletions
diff --git a/glcddrivers/common.c b/glcddrivers/common.c
index 40a3048..540bbdb 100644
--- a/glcddrivers/common.c
+++ b/glcddrivers/common.c
@@ -197,17 +197,6 @@ void clip(int & value, int min, int max)
value = max;
}
-void sort(int & value1, int & value2)
-{
- if (value2 < value1)
- {
- int tmp;
- tmp = value2;
- value2 = value1;
- value1 = tmp;
- }
-}
-
std::string trim(const std::string & s)
{
std::string::size_type start, end;
diff --git a/glcddrivers/common.h b/glcddrivers/common.h
index d1ddcda..feb190b 100644
--- a/glcddrivers/common.h
+++ b/glcddrivers/common.h
@@ -34,7 +34,6 @@ void uSleep(long us);
unsigned char ReverseBits(unsigned char value);
void clip(int & value, int min, int max);
-void sort(int & value1, int & value2);
std::string trim(const std::string & s);
} // end of namespace