Skip to content

Commit

Permalink
Merge pull request #128 from Maxbey/feature/remove-ga
Browse files Browse the repository at this point in the history
Remove GA from the project
  • Loading branch information
Maxbey authored Aug 17, 2018
2 parents 020f9a1 + e494929 commit ffc2c57
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 156 deletions.
14 changes: 0 additions & 14 deletions termius/app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
"""Module for main app class."""
import logging
import os

from os.path import expanduser
from pathlib2 import Path
Expand All @@ -11,7 +10,6 @@
from cliff.commandmanager import CommandManager
from cliff import argparse

from termius.core.analytics import Analytics
from termius.core.commands.help import HelpCommand, HelpAction
from . import __version__
from .core.signals import (
Expand Down Expand Up @@ -61,18 +59,6 @@ def configure_signals(self):

post_logout.connect(clean_data)

def prepare_to_run_command(self, cmd):
"""Collect analytics if it`s not disabled."""
if os.getenv('NOT_COLLECT_STAT'):
return

self.collect_analytics(cmd)

def collect_analytics(self, cmd):
"""Make Analytics instance and send analytics."""
analytics = Analytics(self, getattr(cmd, 'config', None))
analytics.send_analytics(cmd.cmd_name)

def build_option_parser(self, description, version,
argparse_kwargs=None):
"""Return an argparse option parser for this application.
Expand Down
48 changes: 0 additions & 48 deletions termius/core/analytics.py

This file was deleted.

40 changes: 0 additions & 40 deletions tests/unit/app_test.py

This file was deleted.

54 changes: 0 additions & 54 deletions tests/unit/core/analytics_test.py

This file was deleted.

0 comments on commit ffc2c57

Please sign in to comment.