summaryrefslogtreecommitdiff
path: root/rushs/evalexpr/element_count
diff options
context:
space:
mode:
Diffstat (limited to 'rushs/evalexpr/element_count')
-rw-r--r--rushs/evalexpr/element_count/element_count.c10
-rw-r--r--rushs/evalexpr/element_count/element_count.h8
2 files changed, 0 insertions, 18 deletions
diff --git a/rushs/evalexpr/element_count/element_count.c b/rushs/evalexpr/element_count/element_count.c
deleted file mode 100644
index cec47ae..0000000
--- a/rushs/evalexpr/element_count/element_count.c
+++ /dev/null
@@ -1,10 +0,0 @@
-#include "element_count.h"
-
-size_t element_count(int *begin, int *end)
-{
- if (!begin || !end || begin >= end)
- {
- return 0;
- }
- return end - begin;
-}
diff --git a/rushs/evalexpr/element_count/element_count.h b/rushs/evalexpr/element_count/element_count.h
deleted file mode 100644
index 57412ed..0000000
--- a/rushs/evalexpr/element_count/element_count.h
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef ELEMENT_COUNT_H
-#define ELEMENT_COUNT_H
-
-#include <stddef.h>
-
-size_t element_count(int *begin, int *end);
-
-#endif /* !ELEMENT_COUNT_H */