Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.3
    • Component/s: None
    • Labels:

      Description

      Type

      Deletion of tokens.
      If possible, deletion on multiples lines.

      Approach

      The base case, when a single argument is unused, should be supported without trouble.
      Depending on the API, we could also suggest a fix when multiples contiguous arguments are unused, or even support removing non-contiguous one.

      Before

      void doSomething(int a, int b) {
        compute(a);
      }
      
      void doSomething2(int a, 
        int b, 
        int c) {
        compute(a);
      }
      
      void doSomething3(int a, 
        int b, 
        int c,
        int d) {
        compute(a, c);
      }
      

      After

      void doSomething(int a) {
        compute(a);
      }
      
      void doSomething2(int a) {
        compute(a);
      }
      
      void doSomething3(int a, 
        int c) {
        compute(a, c);
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alban.auzeill Alban Auzeill
              Reporter:
              quentin.jaquier Quentin Jaquier
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: