Removed unused urls

This commit is contained in:
Piotr Sarnacki 2013-01-15 13:14:28 +01:00
parent f71f247d10
commit e40fa3b26d
5 changed files with 0 additions and 52 deletions

View File

@ -1,21 +1,4 @@
@Travis.Urls =
repo: (slug) ->
"/#{slug}"
builds: (slug) ->
"/#{slug}/builds"
pullRequests: (slug) ->
"/#{slug}/pull_requests"
branches: (slug) ->
"/#{slug}/branches"
build: (slug, id) ->
"/#{slug}/builds/#{id}"
job: (slug, id) ->
"/#{slug}/jobs/#{id}"
githubPullRequest: (slug, pullRequestNumber) ->
"http://github.com/#{slug}/pull/#{pullRequestNumber}"
@ -40,10 +23,3 @@
email: (email) ->
"mailto:#{email}"
account: (login) ->
"/profile/#{login}"
user: (login) ->
"/profile/#{login}/me"

View File

@ -40,10 +40,6 @@
Travis.Helpers.colorForState(@get('build.state'))
).property('build.state')
urlBuild: (->
Travis.Urls.build(@get('repo.slug'), @get('build.id'))
).property('repo.slug', 'build.id')
urlGithubCommit: (->
Travis.Urls.githubCommit(@get('repo.slug'), @get('commit.sha'))
).property('repo.slug', 'commit.sha')
@ -71,10 +67,6 @@
Travis.Helpers.colorForState(@get('build.state'))
).property('build.state')
urlBuild: (->
Travis.Urls.build(@get('repo.slug'), @get('build.id'))
).property('repo.slug', 'build.id')
urlGithubCommit: (->
Travis.Urls.githubCommit(@get('repo.slug'), @get('commit.sha'))
).property('repo.slug', 'commit.sha')

View File

@ -13,10 +13,6 @@
Travis.Helpers.colorForState(@get('job.state'))
).property('job.state')
urlJob: (->
Travis.Urls.job(@get('repo.slug'), @get('job.id'))
).property('repo.slug', 'job.id')
JobView: Travis.View.extend
templateName: 'jobs/show'
@ -30,10 +26,6 @@
Travis.Helpers.colorForState(@get('job.state'))
).property('job.state')
urlJob: (->
Travis.Urls.job(@get('repo.slug'), @get('job.id'))
).property('repo.slug', 'job.id')
urlGithubCommit: (->
Travis.Urls.githubCommit(@get('repo.slug'), @get('commit.sha'))
).property('repo.slug', 'commit.sha')

View File

@ -19,14 +19,6 @@
Travis.Helpers.colorForState(@get('repo.lastBuildState'))
).property('repo.lastBuildState')
urlRepo: (->
Travis.Urls.repo(@get('repo.slug'))
).property('repo.slug')
urlLastBuild: (->
Travis.Urls.build(@get('repo.slug'), @get('repo.lastBuildId'))
).property('repo.slug', 'repo.lastBuildId')
ReposListTabsView: Travis.View.extend
templateName: 'repos/list/tabs'
tabBinding: 'controller.tab'

View File

@ -180,10 +180,6 @@
@set('statusImageBranch', null)
).observes('repo.branches', 'repo.branches.isLoaded', 'build.commit.branch')
urlRepo: (->
'https://' + location.host + Travis.Urls.repo(@get('repo.slug'))
).property('repo.slug')
statusImageUrl: (->
Travis.Urls.statusImage(@get('repo.slug'), @get('statusImageBranch.commit.branch'))
).property('repo.slug', 'statusImageBranch')