Remove unnecessary List.indexOf key from Track.remove

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 26
    • Affects Version/s: 8, 11, 17, 21, 24, 25, 26
    • Component/s: client-libs

      No need to call 'List.indexOf(Object)' before 'List.remove(int)'. Instead we can call 'List.remove(Object)' directly. It's faster and cleaner.

                      int i = eventsList.indexOf(event);
                      if (i >= 0) {
                          eventsList.remove(i);
                          return true;
                      }

            Assignee:
            Andrey Turbanov
            Reporter:
            Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: