From d66c141e8d8c8e49dfaa50bfab42cb4714968a26 Mon Sep 17 00:00:00 2001 From: Simon Steinbeiss Date: Fri, 10 Feb 2023 17:19:11 +0100 Subject: [PATCH] Remove unused variable --- config/dev.webpack.config.js | 8 -------- config/prod.webpack.config.js | 8 -------- package.json | 3 --- src/Components/LandingPage/LandingPage.js | 2 -- 4 files changed, 21 deletions(-) diff --git a/config/dev.webpack.config.js b/config/dev.webpack.config.js index c88b645b..d382e8b1 100644 --- a/config/dev.webpack.config.js +++ b/config/dev.webpack.config.js @@ -1,8 +1,6 @@ const { resolve } = require('path'); const config = require('@redhat-cloud-services/frontend-components-config'); -const { GitRevisionPlugin } = require('git-revision-webpack-plugin'); -const { DefinePlugin } = require('webpack'); const webpackProxy = { useProxy: true, @@ -38,12 +36,6 @@ plugins.push( ) ); -plugins.push( - new DefinePlugin({ - COMMITHASH: JSON.stringify(new GitRevisionPlugin().commithash()), - }) -); - module.exports = { ...webpackConfig, plugins, diff --git a/config/prod.webpack.config.js b/config/prod.webpack.config.js index 641973be..4b7379fc 100644 --- a/config/prod.webpack.config.js +++ b/config/prod.webpack.config.js @@ -1,8 +1,6 @@ const { resolve } = require('path'); const config = require('@redhat-cloud-services/frontend-components-config'); -const { GitRevisionPlugin } = require('git-revision-webpack-plugin'); -const { DefinePlugin } = require('webpack'); const { config: webpackConfig, plugins } = config({ rootFolder: resolve(__dirname, '../'), sassPrefix: '.imageBuilder', @@ -21,12 +19,6 @@ plugins.push( ) ); -plugins.push( - new DefinePlugin({ - COMMITHASH: JSON.stringify(new GitRevisionPlugin().commithash()), - }) -); - module.exports = { ...webpackConfig, plugins, diff --git a/package.json b/package.json index 434f2ca5..7010a601 100644 --- a/package.json +++ b/package.json @@ -35,9 +35,6 @@ "!src/entry-dev.js" ], "testEnvironment": "jsdom", - "globals": { - "COMMITHASH": "dummy" - }, "roots": [ "/src/" ], diff --git a/src/Components/LandingPage/LandingPage.js b/src/Components/LandingPage/LandingPage.js index ced713f7..9df39261 100644 --- a/src/Components/LandingPage/LandingPage.js +++ b/src/Components/LandingPage/LandingPage.js @@ -1,5 +1,3 @@ -/* global COMMITHASH */ - import React, { Component } from 'react'; import { Button, Popover, Text, TextContent } from '@patternfly/react-core';