[shotwell] Remove dead code
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Remove dead code
- Date: Sun, 9 Jul 2017 10:26:04 +0000 (UTC)
commit b59db2dec66117b5b07345bb20b7c6d0d597d474
Author: Jens Georg <mail jensge org>
Date: Sat Jul 8 10:33:15 2017 +0200
Remove dead code
src/SortedList.vala | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/src/SortedList.vala b/src/SortedList.vala
index 727b523..20e6771 100644
--- a/src/SortedList.vala
+++ b/src/SortedList.vala
@@ -6,20 +6,6 @@
public delegate int64 Comparator(void *a, void *b);
-public int64 file_comparator(void *a, void *b) {
- string? path_a = ((File *) a)->get_path();
- string? path_b = ((File *) b)->get_path();
-
- // if both are null, treat as equal; if one but not the other, prioritize the non-null
- if (path_a == null)
- return (path_b == null) ? 0 : 1;
-
- if (path_b == null)
- return -1;
-
- return strcmp(path_a.collate_key_for_filename(), path_b.collate_key_for_filename());
-}
-
public class SortedList<G> : Object, Gee.Traversable<G>, Gee.Iterable<G>, Gee.Collection<G> {
private Gee.ArrayList<G> list;
private unowned Comparator? cmp;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]