OK-487 - Unused component out
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index 16a2375..a96c64d 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -6,7 +6,6 @@
 import { Daterangepicker } from 'ng2-daterangepicker';
 import { HttpModule } from '@angular/http';
 import { NotificationService } from './services/notification.service';
-import { NotificationSearchSortService } from './services/notification-search-sort.service';
 import { AuthenticationService } from './services/authentication.service';
 import { BaseDataService } from './services/base-data.service';
 import { ResponsibilityService } from './services/responsibility.service';
@@ -118,7 +117,6 @@
   ],
   providers: [
     NotificationService,
-    NotificationSearchSortService,
     AuthenticationService,
     ResponsibilityService,
     ReminderService,
diff --git a/src/app/pages/search/search.component.spec.ts b/src/app/pages/search/search.component.spec.ts
index 0ddd519..67778b9 100644
--- a/src/app/pages/search/search.component.spec.ts
+++ b/src/app/pages/search/search.component.spec.ts
@@ -30,7 +30,6 @@
 import { Notification } from '../../model/notification';
 import { NotificationService } from '../../services/notification.service';
 import { SearchResultService } from '../../services/search-result.service';
-import { NotificationSearchSortService } from '../../services/notification-search-sort.service';
 import { SEARCH_RESULT_NOTIFICATIONS } from '../../test-data/search-result-notifications';
 import { FilterSelection } from '../../model/filter-selection';
 import { CurrentRemindersComponent } from '../../lists/current-reminders/current-reminders.component';
@@ -107,30 +106,11 @@
     itemAdded$ = new EventEmitter();
     loadCalled = false;
     searchResultNotifications = SEARCH_RESULT_NOTIFICATIONS;
-
-    public searchFirstNotifications(notifications: Notification[], searchInput: string, filterSelection: FilterSelection) {
-      this.loadCalled = true;
-      const notificationSearchSortService = new NotificationSearchSortService();
-      // TODO: redesign service
-      //notificationSearchSortService.content = this.searchResultNotifications;
-      return notificationSearchSortService;
-    }
-    public searchAllNotifications(notifications: Notification[], searchInput: string, filterSelection: FilterSelection) {
-      this.loadCalled = true;
-      const notificationSearchSortService = new NotificationSearchSortService();
-      // TODO: redesign service
-      //notificationSearchSortService.content = this.searchResultNotifications;
-      return notificationSearchSortService;
-    }
   }
 
   class MockSearchResultService extends AbstractMockObservableService {
-    //TODO
-
     public getSearchResults(searchResultFilter?: GlobalSearchFilter) {
 
-      //const searchResultService = new SearchResultService();
-
       const searchResultNotifications = SEARCH_RESULT_NOTIFICATIONS;
       this.content = searchResultNotifications;
       return this;
@@ -205,7 +185,6 @@
         { provide: OVERLAY_PROVIDERS, useClass: OVERLAY_PROVIDERS },
         { provide: DaterangepickerConfig, useClass: DaterangepickerConfig },
         { provide: NotificationService, useValue: mockNotificationService },
-        { provide: NotificationSearchSortService, useValue: mockNotificationSearchSortService },
         { provide: SearchResultService, useValue: mockSearchResultService },
         { provide: SessionContext, useClass: SessionContext },
         { provide: ReminderService, useClass: ReminderService },
diff --git a/src/app/services/notification-search-sort.service.spec.ts b/src/app/services/notification-search-sort.service.spec.ts
deleted file mode 100644
index bec6955..0000000
--- a/src/app/services/notification-search-sort.service.spec.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-/* tslint:disable:no-unused-variable */
-
-import { TestBed, async, inject } from '@angular/core/testing';
-import { NotificationSearchSortService } from './notification-search-sort.service';
-
-describe('NotificationSearchSortService', () => {
-  beforeEach(() => {
-    TestBed.configureTestingModule({
-      providers: [NotificationSearchSortService]
-    });
-  });
-
-  it('should ...', inject([NotificationSearchSortService], (service: NotificationSearchSortService) => {
-    expect(service).toBeTruthy();
-  }));
-});
diff --git a/src/app/services/notification-search-sort.service.ts b/src/app/services/notification-search-sort.service.ts
deleted file mode 100644
index aa2c0ff..0000000
--- a/src/app/services/notification-search-sort.service.ts
+++ /dev/null
@@ -1,59 +0,0 @@
-import { Injectable } from '@angular/core';
-
-import { Notification } from '../model/notification';
-import { FilterSelection } from '../model/filter-selection';
-
-@Injectable()
-export class NotificationSearchSortService {
-
-  constructor() { }
-
-  private getSortedNotifications(notifications: Notification[]): Notification[] {
-    return notifications.sort((a, b) => a.createDate > b.createDate ? 1 : -1);
-  }
-/*
-  private getAllSortedNotifications(): Observable<Notification[]> {
-    return this.getSortedNotifications(this.getAllNotifications());
-  }
-  */
-
-  private searchNotifications(searchInput: string, filterSelection: FilterSelection, notifications: Notification[]): Notification[] {
-    return notifications.filter(notification => {
-      if ((filterSelection.all || filterSelection.status) && notification.status.includes(searchInput)) {
-        return true;
-      }
-      if ((filterSelection.all || filterSelection.notificationText) && notification.notificationText.includes(searchInput)) {
-        return true;
-      }
-      if ((filterSelection.all || filterSelection.freeText) && notification.freeText.includes(searchInput)) {
-        return true;
-      }
-      if ((filterSelection.all || filterSelection.freeTextExtended) && notification.freeTextExtended.includes(searchInput)) {
-        return true;
-      }
-      if ((filterSelection.all || filterSelection.responsibilityForwarding) && 
-           notification.responsibilityForwarding.includes(searchInput)) {
-        return true;
-      }
-      if ((filterSelection.all || filterSelection.responsibilityControlPoint) && 
-           notification.responsibilityControlPoint.includes(searchInput)) {
-        return true;
-      }
-      if ((filterSelection.all || filterSelection.creator) && notification.createUser.includes(searchInput)) {
-        return true;
-      }
-      if ((filterSelection.all || filterSelection.clerk) && notification.clerk.includes(searchInput)) {
-        return true;
-      }
-    });
-  }
-
-  searchFirstNotifications(notifications: Notification[], searchInput: string, filterSelection: FilterSelection): Notification[] {
-    return this.searchNotifications(searchInput, filterSelection, notifications).splice(0, 5);
-  }
-
-  searchAllNotifications(notifications: Notification[], searchInput: string, filterSelection: FilterSelection): Notification[] {
-    return this.searchNotifications(searchInput, filterSelection, notifications);
-  }  
-
-}