Is there a school of ethics that doesn't view any particular action as bad or unethical, but rather actions are only bad if they result in negative outcomes for society? For example: murder itself is not bad but the negative consequences of murder on society (grief, loss of productivity, etc.) make the action of murder bad. Inversely, if someone is murdered but it results in no negative impact to society (including police investigation or people wondering what happened to the victim), this act of murder would not be immoral.
I seem to recall hearing about some school of ethics that took this view but I can't recall what it was called or who originated it.