Skip to content

Commit

Permalink
removed unncessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
David Furió committed Jun 30, 2017
1 parent a7a597e commit 7bb2166
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pythonx/cm_sources/swift-completer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
abbreviation='swift',
scoping=1,
scopes=['swift'],
# cm_refresh_patterns=[r'(-\>|\.|:)$'],
cm_refresh_patterns=[r'((?:\.|(?:,|:|->)\s+)\w*|\()'],
# cm_refresh_patterns=[r'(\.|:|:\s*\w*)$'],
)


Expand Down Expand Up @@ -76,9 +74,6 @@ def cm_refresh(self, info, ctx, *args):
offset += len(bytes(text, enc)) + 1
offset += col - 2

# logger.info("offset: %d", offset)
# logger.info("startcol: %d", startcol)

# Set sourcekitten arguments
args = ['sourcekitten', 'complete', '--text', content.encode(enc), '--offset', str(offset)]
if self.__spm:
Expand Down

0 comments on commit 7bb2166

Please sign in to comment.