~roryj/slingshot/fix-1356641

« back to all changes in this revision

Viewing changes to src/Utils.vala

  • Committer: RabbitBot
  • Author(s): spautz-julien
  • Date: 2014-08-31 10:48:51 UTC
  • mfrom: (441.1.1 slingshot)
  • Revision ID: rabbitbot-20140831104851-cd0lqnifm8yl5vwt
Removed some functions rendered useless by the new Synapse backend and minor code cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
            return widget;
30
30
        }
31
31
 
32
 
        public static int sort_apps_by_popularity (Backend.App a, Backend.App b) {
33
 
            return (int) (b.popularity*1000 - a.popularity*1000);
34
 
        }
35
 
 
36
32
        public static int sort_apps_by_name (Backend.App a, Backend.App b) {
37
33
            return a.name.collate (b.name);
38
34
        }
39
 
 
40
 
        public static int sort_apps_by_relevancy (Backend.App a, Backend.App b) {
41
 
            return (int) (a.relevancy*1000 - b.relevancy*1000);
42
 
        }
43
35
    }
44
 
}
 
36
}
 
 
b'\\ No newline at end of file'