OSDN Git Service

Thanos did someting
[bytom/vapor.git] / api / page_util.go
diff --git a/api/page_util.go b/api/page_util.go
deleted file mode 100644 (file)
index 7bffbc0..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-package api
-
-// Get the start and end of the page.
-func getPageRange(size int, from uint, count uint) (uint, uint) {
-       total := uint(size)
-       if from == 0 && count == 0 {
-               return 0, total
-       }
-       start := from
-       end := from + count
-       if start > total {
-               start = total
-       }
-       if end > total {
-               end = total
-       }
-       return start, end
-}